package com.eduran.test.main;

import com.eduran.test.model.Jungle;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ListOfBeans {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("ListOfBeans.xml");
        Jungle jungle = (Jungle)context.getBean("jungle");
        System.out.println(jungle);
        ((ClassPathXmlApplicationContext)context).close();
    }
}
